{extend name="layout" /}
{block name="title"}支付方式{/block}
{block name="content"}
<div class="layui-form" lay-filter="LAY-set-payment-form" id="LAY-set-payment-form" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-inline">
            <input type="text" name="name" lay-verify="required" placeholder="请输入名称" autocomplete="off"
                   class="layui-input" value="{$data.name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">标识</label>
        <div class="layui-input-inline">
            <input type="text" name="code" lay-verify="required" placeholder="请输入标识" autocomplete="off"
                   class="layui-input" value="{$data.code}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">描述</label>
        <div class="layui-input-block">
            <textarea type="text" name="desc" autocomplete="off" class="layui-textarea">{$data.desc}</textarea>
        </div>
    </div>
    {foreach $data.config as $key=>$vo}
    <div class="layui-form-item">
        <label class="layui-form-label">{$vo.title}</label>
        <div class="layui-input-block">
            <input type="hidden" name="config[{$key}][title]" value="{$vo.title}">
            <input type="hidden" name="config[{$key}][name]" value="{$vo.name}">
            <input type="text" name="config[{$key}][value]" placeholder="请输入{$vo.title}" autocomplete="off"
                   class="layui-input" value="{$vo.value}">
        </div>
    </div>
    {/foreach}
    <div class="layui-form-item">
        <label class="layui-form-label">支付状态</label>
        <div class="layui-input-inline">
            <select name="is_recharge" lay-verify="required">
                <option value="1" {if $data.is_recharge == '1'}selected{/if}>启用</option>
                <option value="0" {if $data.is_recharge == '0'}selected{/if}>禁用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">转账状态</label>
        <div class="layui-input-inline">
            <select name="is_transfer" lay-verify="required">
                <option value="1" {if $data.is_transfer == '1'}selected{/if}>启用</option>
                <option value="0" {if $data.is_transfer == '0'}selected{/if}>禁用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
            <select name="status" lay-verify="required">
                <option value="1" {if $data.status == '1'}selected{/if}>启用</option>
                <option value="0" {if $data.status == '0'}selected{/if}>禁用</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-set-payment-submit" id="LAY-set-payment-submit" value="确认">
    </div>
</div>
{/block}
